import 'package:get/get.dart';
import 'package:meco/views/index.dart';

/// MainBinding
class MainBinding implements Bindings {
  @override
  void dependencies() {
    // 注入MainController
    Get.put<MainController>(MainController(), permanent: true);

    // 注入四个子页面的控制器
    Get.put<HomeController>(HomeController(), permanent: true);
    Get.put<ShareController>(ShareController(), permanent: true);
    Get.put<TimeController>(TimeController(), permanent: true);
    Get.put<MeController>(MeController(), permanent: false);
  }
}
